#if !defined(AFX_KTOKENLIST_H__57B1F028_A110_4B09_B7F3_DB781E7D9665__INCLUDED_)
#define AFX_KTOKENLIST_H__57B1F028_A110_4B09_B7F3_DB781E7D9665__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// KTokenList.h : header file
//
#include "resource.h"
#include "KReportCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// KTokenList dialog
#include "TokenPages.h"	// Added by ClassView

class KTokenList : public CDialog
{
// Construction
public:
	int     m_Flag;
	CString m_TokenSn;
	CTokenPages m_tokenpages;
	KTokenList(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(KTokenList)
	enum { IDD = IDD_TOKEN_LIST };
	CEdit	m_cedtSearchText;
	CStatic	m_cstcTokenPagesCnt;
	CEdit	m_cedtTokenPageNo;
	CComboBox	m_cSearchMode;
	KReportCtrl	m_TokenList;
	CString	m_strSearchText;
	//}}AFX_DATA

	CImageList m_ImageList;
	CMap<int, int, int, int> m_mapTokenType;	// Map token type to image index.

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(KTokenList)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(KTokenList)
	virtual BOOL OnInitDialog();
	afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
	virtual void OnOK();
	afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonFind();
	afx_msg void OnBtnGotoFirstTokenPage();
	afx_msg void OnBtnGotoPrevTokenPage();
	afx_msg void OnBtnGotoNextTokenPage();
	afx_msg void OnBtnGotoLastTokenPage();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void SetPageSize();
	void ShowTokens();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_KTOKENLIST_H__57B1F028_A110_4B09_B7F3_DB781E7D9665__INCLUDED_)
